import { returnResponse, jsonResponse, httpCode } from "@/utils/index.mjs";
import redis from "@/utils/redis.mjs";

export async function GET(request) {
    try {
        await redis.set('myKey', 'myValue1')
    } catch (e) {
        return jsonResponse(httpCode.INTERNAL_SERVER_ERROR, { message: 'Redis Error' })
    }
    const res = await redis.get('myKey')
    return returnResponse(res)
}
